package com.itheima.object;

//个人类：个人对象的模版
//封装：把数据和对数据的处理放到同一个类中
public class Person {

    int age;
    String name;
    String gender;
    double height;
    double weight;

    //计算BMI
    public double getBMI() {
        return weight / (height * height);
    }

}
